package com.laoli.myspringboottest.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;

import com.laoli.myspringboottest.enums.ItemType;
import lombok.Data;

/**
 * 
 * @TableName table_b
 */
@TableName(value ="table_b")
@Data
public class TableB implements Serializable {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 
     */
    @TableField(value = "value")
    private String value;

    @TableField(value = "item_type")
    @EnumValue
    private ItemType itemType;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;


    @Override
    public String toString() {
        return "[id:"+id +", value:"+ value + ", itemType:" + itemType + "]";
    }
}